IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[postern_token]') AND TYPE in (N'U'))
BEGIN
CREATE Table postern_token
(
    postern_token_id INT IDENTITY(1,1) NOT NULL,
    start_time DateTime NULL DEFAULT(GETDATE()),
    expired_time DateTime NULL,
    create_date DATETIME DEFAULT(GETDATE()),
    update_date DATETIME,
	CONSTRAINT PK_postern_token_id PRIMARY KEY CLUSTERED (postern_token_id)
) 
END
GO